package com.hccl.mongoEntities;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.converters.MapOfValuesConverter;

import java.util.*;

/**
 * Created by chenhong on 2017/3/10.
 */
@Embedded
public class EmbedElementEntity {
    protected String standardName;//抽取名
    protected List<String> userinput=new ArrayList<String>();//用户说法
    protected Map<String,String> attlists;//属性列表

    public EmbedElementEntity() {
        super();
    }
    public String getStandardName(){return this.standardName;}
    public void setStandardName(String s){standardName=s;}
    public List<String> getUserinput(){return this.userinput;}

    public String getUserinputString(){
        String s="";
        Iterator<String> it=userinput.iterator();
        while (it.hasNext())s=s+it.next()+",";
        if(userinput.size()>0)s=s.substring(0,s.length()-1);
        return s;
    }

    public void setUserinput(List<String> s){userinput=s;}
    public Map<String,String> getAttlists(){return this.attlists;}
    public void setAttlists(Map<String,String> m){attlists=m;}
}
